package JD_LOCK_WAIT;

public class Example {
    String name;
    synchronized void waitForCondition(Object lock) {
        try {
            synchronized(lock) {
                name = "aa";
                lock.wait();
            }
        } catch (InterruptedException e) {
            return;
        }
    }
}
